from django.conf.urls import patterns, include, url

urlpatterns = patterns('question.views',
    url(r'^$', 'index'),
    url(r'^new/$', 'new'),
    url(r'^new/(?P<test_id>\d+)/$', 'new'),
    url(r'^new/answer/(?P<question_type>\w+)/$', 'answer'),
    url(r'^edit/(?P<question_id>\d+)/$', 'edit'),
    url(r'^edit/(?P<question_id>\d+)/(?P<test_id>\d+)/$', 'edit'),
    url(r'^remove/(?P<question_id>\d+)/$', 'remove'),
    url(r'^delete/(?P<question_id>\d+)/$', 'delete'),
    url(r'^difficulties/$', 'index_difficulties'),
    url(r'^difficulties/new/$', 'new_difficulty'),
    url(r'^difficulties/delete/(?P<difficulty_id>\d+)/$', 'delete_difficulty'),
    url(r'^(?P<question_id>\d+)/$', 'show'),
)
